-- GENERATED SPELL FOR [Grol the Destroyer] --


function spell0_7665(pUnit, Event) --@Ground Smash,Self--
pUnit:FullCastSpellOnTarget(12734,pUnit)
pUnit:RegisterEvent('Sorts_7665', 2301, 1)
end

function spell1_7665(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7665', 549, 1)
end

function Sorts_7665(pUnit, Event)
local choix_sorts_7665 = math.random(0, 1)
if choix_sorts_7665 == 0 then
pUnit:RegisterEvent('spell0_7665', 1, 1)
end
if choix_sorts_7665 == 1 then
pUnit:RegisterEvent('spell1_7665', 1, 1)
end
end

function mob7665_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7665', math.random(1500, 3000), 1)
end

function mob7665_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7665_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7665_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7665, 1, 'mob7665_Action')
RegisterUnitEvent(7665, 2, 'mob7665_Leave')
RegisterUnitEvent(7665, 3, 'mob7665_Kill')
RegisterUnitEvent(7665, 4, 'mob7665_Die')
